﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Trains.Models
{
    public class Route
    {
        public Station From { get; set; }
        public Station To { get; set; }
        public int Distance { get; set; }

        public Route(Station from, Station to, int distance)
        {
            this.From = from;
            this.To = to;
            this.Distance = distance;
        }

        public Route AddRoute(Station from, Station to, int distance)
        {
            this.From = from;
            this.To = to;
            this.Distance = distance;
            return this;
        }
}
}
